package com.boil.qz.safekavass.pojo;

/**
 * Created by ChenYong on 2017-05-26.
 * <br>
 * 微信发普通红包映射实体类。
 */
public class WeixinSendredpackVo {
    /**
     * 商户订单号，主键
     */
    private String mch_billno;
    /**
     * 签名
     */
    private String sign;
    /**
     * 商户号
     */
    private String mch_id;
    /**
     * 公众账号 appid
     */
    private String wxappid;
    /**
     * 商户名称
     */
    private String send_name;
    /**
     * 用户 openid
     */
    private String re_openid;
    /**
     * 付款金额（单位：分）
     */
    private Integer total_amount;
    /**
     * 红包发放总人数
     */
    private Integer total_num;
    /**
     * 红包祝福语
     */
    private String wishing;
    /**
     * Ip 地址
     */
    private String client_ip;
    /**
     * 活动名称
     */
    private String act_name;
    /**
     * 备注
     */
    private String remark;
    /**
     * 场景 id
     */
    private String scene_id;
    /**
     * 资金授权商户号
     */
    private String consume_mch_id;
    /**
     * 随机字符串
     */
    private String nonce_str;
    /**
     * 活动信息
     */
    private String risk_info;

    /**
     * 默认构造器。
     */
    public WeixinSendredpackVo() {
        super();
    }

    public String getMch_billno() {
        return mch_billno;
    }

    public void setMch_billno(String mch_billno) {
        this.mch_billno = mch_billno;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getWxappid() {
        return wxappid;
    }

    public void setWxappid(String wxappid) {
        this.wxappid = wxappid;
    }

    public String getSend_name() {
        return send_name;
    }

    public void setSend_name(String send_name) {
        this.send_name = send_name;
    }

    public String getRe_openid() {
        return re_openid;
    }

    public void setRe_openid(String re_openid) {
        this.re_openid = re_openid;
    }

    public Integer getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(Integer total_amount) {
        this.total_amount = total_amount;
    }

    public Integer getTotal_num() {
        return total_num;
    }

    public void setTotal_num(Integer total_num) {
        this.total_num = total_num;
    }

    public String getWishing() {
        return wishing;
    }

    public void setWishing(String wishing) {
        this.wishing = wishing;
    }

    public String getClient_ip() {
        return client_ip;
    }

    public void setClient_ip(String client_ip) {
        this.client_ip = client_ip;
    }

    public String getAct_name() {
        return act_name;
    }

    public void setAct_name(String act_name) {
        this.act_name = act_name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getScene_id() {
        return scene_id;
    }

    public void setScene_id(String scene_id) {
        this.scene_id = scene_id;
    }

    public String getConsume_mch_id() {
        return consume_mch_id;
    }

    public void setConsume_mch_id(String consume_mch_id) {
        this.consume_mch_id = consume_mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getRisk_info() {
        return risk_info;
    }

    public void setRisk_info(String risk_info) {
        this.risk_info = risk_info;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WeixinSendredpackVo that = (WeixinSendredpackVo) o;

        return mch_billno != null ? mch_billno.equals(that.mch_billno) : that.mch_billno == null;
    }

    @Override
    public int hashCode() {
        return mch_billno != null ? mch_billno.hashCode() : 0;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("WeixinSendredpackVo{");
        sb.append("mch_billno='").append(mch_billno).append('\'');
        sb.append(", sign='").append(sign).append('\'');
        sb.append(", mch_id='").append(mch_id).append('\'');
        sb.append(", wxappid='").append(wxappid).append('\'');
        sb.append(", send_name='").append(send_name).append('\'');
        sb.append(", re_openid='").append(re_openid).append('\'');
        sb.append(", total_amount=").append(total_amount);
        sb.append(", total_num=").append(total_num);
        sb.append(", wishing='").append(wishing).append('\'');
        sb.append(", client_ip='").append(client_ip).append('\'');
        sb.append(", act_name='").append(act_name).append('\'');
        sb.append(", remark='").append(remark).append('\'');
        sb.append(", scene_id='").append(scene_id).append('\'');
        sb.append(", consume_mch_id='").append(consume_mch_id).append('\'');
        sb.append(", nonce_str='").append(nonce_str).append('\'');
        sb.append(", risk_info='").append(risk_info).append('\'');
        sb.append('}');
        return sb.toString();
    }
}